﻿using Microsoft.Xna.Framework;

namespace IcicleFramework.Components.Actions
{
    public abstract class AutoExecuteAction : ImmediateAction
    {
        public override void Update(GameTime gameTime)
        {
            Execute(gameTime);

            if (!ContinuousActions)
            {
                Parent.RemoveAction(Name);
            }
        }
    }
}
